import java.util.Scanner;

public class Six {
	public enum Grade {
		A, B, C, D, E;
	}
	
	public Grade getGrade(int score) {
		if (score >= 90 && score <= 100) {
			System.out.println("Excellent");
			return Grade.A;
		} else if (score >= 80 && score < 90) {
			System.out.println("Good");
			return Grade.B;
		} else if (score >= 70 && score < 80) {
			System.out.println("Average");
			return Grade.C;
		} else if (score >= 60 && score < 70) {
			System.out.println("Fair");
			return Grade.D;
		} else {
			System.out.println("Poor");
			return Grade.E;
		}
	}

	public void printGradeInfo(Grade grade) {
		System.out.println("class name=class Grade");
		System.out.println("grade value=" + grade);
	}

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNextInt()) {
			int score = scan.nextInt();
			Six six = new Six();
			six.printGradeInfo(six.getGrade(score));
		}
		scan.close();
	}

}

/*
 * ArrayList List = new ArrayList(); ArrayList List1 = new ArrayList(); Scanner
 * scan=new Scanner(System.in); String s1,s2; while(scan.hasNextLine()){
 * s1=scan.nextLine(); s2=scan.nextLine(); List.add(s1); List1.add(s2);
 * List.addAll(List1); System.out.println(List);
 */
